function checkAcc() {
	acc = document.getElementById("accId");
	if (acc.innerHTML == null || acc.innerHTML == "") {
		alert("Please choose an account !!!");
		return false;
	}
	return true;
};

function externalForm1() {
	accRec = $("#accountRecieve").val();
	amount = $("#amount").val();
	$("#accRec").html("");
	$("#amount").html("");

	invalid = true;
	if (accRec == "") {
		$("#errAccRec").html("Account Recieve could not be empty !!!");
		invalid = false;
	} else if (isNaN(accRec)) {
		$("#errAccRec").html("Account Recieve just is a number !!!");
		invalid = false;
	}

	if (amount == "") {
		$("#errAmount").html("amount could not be empty !!!");
		invalid = false;
	} else if (isNaN(amount)) {
		$("#errAmount").html("amount just is a number !!!");
		invalid = false;
	} else if (amount < 50000 || (amount % 10000) != 0) {
		$("#errAmount").html("amount is more than 50 and ...!!!");
		invalid = false;
	} else if(amount > 2147483000) {
		$("#errAmount").html("amount is less than 2147483000!!!");
		invalid = false;
	}
	return invalid;
};

$("#accountRecieve").focusout(function() {
	accRec = $("#accountRecieve").val();
	if (accRec == "") {
		$("#errAccRec").html("Account Recieve could not be empty !!!");
	} else if (isNaN(accRec)) {
		$("#errAccRec").html("Account Recieve just is a number !!!");
	} else {
		$("#errAccRec").html("");
	}
});

$("#amount").focusout(function() {
	amount = $("#amount").val();
	if (amount == "") {
		$("#errAmount").html("Amount could not be empty !!!");
	} else if (isNaN(amount)) {
		$("#errAmount").html("Amount just is a number !!!");
	} else if (amount < 50000 || (amount % 10000) != 0) {
		$("#errAmount").html("Aamount is more than 50 and ...!!!");
	} else {
		$("#errAmount").html("");
	}
});

function externalForm2() {
	captcha = $("#answer").val();
	$("#errCaptcha").html("");
	invalid = true;
	if (captcha == "") {
		$("#errCaptcha").html("Captcha could not be empty !!!");
		invalid = false;
	}
	return invalid;
};

$("#answer").focusout(function() {
	captcha = $("#answer").val();
	$("#errCaptcha").html("");
	if (captcha == "") {
		$("#errCaptcha").html("Captcha could not be empty !!!");
	} else {
		$("#errCaptcha").html("");
	}
});

function externalForm3() {
	codeOTP = $("#codetOTP").val();
	$("#errOTP").html("");
	invalid = true;
	if (codeOTP == "") {
		$("#errOTP").html("Code OTP could not be empty !!!");
		invalid = false;
	}
	return invalid;
};

$("#codetOTP").focusout(function() {
	codeOTP = $("#codetOTP").val();
	if (codeOTP == "") {
		$("#errOTP").html("Code OTP could not be empty !!!");
	} else {
		$("#errOTP").html("");
	}
});
